import request from '@/utils/request'

export function getList(query) {
  return request({
    url: '/web-api/api/emergencyCalling',
    method: 'get',
    params: query
  })
}

export function addEmergencyCalling(data) {
  return request({
    url: '/web-api/api/emergencyCalling/add',
    method: 'post',
    data
  })
}

export function updateEmergencyCalling(data) {
  return request({
    url: '/web-api/api/emergencyCalling/update',
    method: 'get',
    params: data
  })
}
